import React, { Component } from 'react';
import { renderRoutes } from 'react-router-config';
import { HashRouter } from 'react-router-dom'
import routes from './router';
import store from './store';
import {Provider} from 'react-redux'

import HNAppHeader from 'components/app-header';
import HNAppFooter from 'components/app-footer';
import HNPlayerBar from '@/pages/player/app-player-bar'
class App extends Component {
    render() {
        return (
            <Provider store={store}>
                <HashRouter>
                    <HNAppHeader />
                    {renderRoutes(routes)}
                    <HNAppFooter />
                    <HNPlayerBar/>
                </HashRouter>
            </Provider>
        );
    }
}

export default App;